🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / core / model / src / commonMain / kotlin / org / meshtastic / core / model / DeviceLink.kt
Displaying Raw • Download
core/model/src/commonMain/kotlin/org/meshtastic/core/model/DeviceLink.kt 01cd54907d62cd90913d3d071b6bc240cae365ef (01cd5490) Text, 1.86 KB
T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.model
Tff7b72import T7ee787kotlinx.serialization.Serializable
T8b949e/**
* A msh.to device link resolved by the Meshtastic API (`/resource/deviceLinks`) and cached locally. Every link routes
* through the msh.to redirect service.
*
* @param shortCode the msh.to short code, e.g. `rak_wismeshtag`, `rokland-heltec-v3`.
* @param description human-readable label shown to the user.
* @param isVendor true for a first-party vendor link (shown more prominently than region-filtered marketplace links).
* @param regions marketplace shipping regions (ISO 3166-1 alpha-2). `null` = not region-filtered (vendor/worldwide);
* non-empty = limited to the listed countries.
* @param targets device `platformioTarget`s this link is attached to; used to match a link to the device on screen.
*/
Tf0883e@Serializable
Tff7b72data Tff7b72class T56d364DeviceLinkTb4b4b4(
Tff7b72val Te6edf3shortCodeTb4b4b4: Tffa657StringTb4b4b4,
Tff7b72val Te6edf3descriptionTb4b4b4: Tffa657String? Tff7b72= Tff7b72nullTb4b4b4,
Tff7b72val Te6edf3isVendorTb4b4b4: Tffa657Boolean Tff7b72= Tff7b72falseTb4b4b4,
Tff7b72val Te6edf3regionsTb4b4b4: Te6edf3ListTff7b72<Tffa657StringTff7b72>Tff7b72? Tff7b72= Tff7b72nullTb4b4b4,
Tff7b72val Te6edf3targetsTb4b4b4: Te6edf3ListTff7b72<Tffa657StringTff7b72>Tff7b72? Tff7b72= Tff7b72nullTb4b4b4,
Tb4b4b4) Tb4b4b4{
T8b949e/** The user-facing link, routed through the msh.to redirect service. */
Tff7b72val Te6edf3urlTb4b4b4: Tffa657String
Tff7b72getTb4b4b4(Tb4b4b4) Tff7b72= Ta5d6ff"Ta5d6ffhttps://msh.to/Tffd700$Te6edf3shortCodeTa5d6ff"
Tb4b4b4}
Served by rngit 1.5.0 - Generated in 0.05s